<template>
  <div class="login">
    <header class="header">
      <el-row>
        <el-col :span="12">
          <div class="grid-content">
            <router-link to="profile" replace class="iconfont icon-fanhui" tag="span"></router-link>
            <span class="login_smg">登录</span>
          </div>
        </el-col>
        <el-col :span="12">
          <div class="grid-content r">
            <router-link to="login_pwd" replace tag="span" class="login_pwd">
              密码登录
            </router-link>
          </div>
        </el-col>
      </el-row>
    </header>

    <section class="input_field">
      <el-input placeholder="手机号" v-model="phoneNumber" clearable>
        <template slot="append">获取验证码</template>
      </el-input>
      <el-input v-model="vcode" placeholder="验证码"></el-input>

      <el-button type="primary" size="medium">登录</el-button>
    </section>
  </div>
</template>

<script>
  export default {
    data: function () {
      return {
        phoneNumber: '',
        vcode: ''
      }
    }
  }
</script>

<style scoped lang="scss">
  .header {
    background-color: rgba(0, 147, 255, 1);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 500;

    .grid-content {
      padding-top: 8px;
      min-height: 42px;
      height: 42px;

      .iconfont {
        padding: 0 20px;
        font-weight: bolder;
      }
    }

    .r {
      text-align: right;
      padding-right: 20px;

      .login_pwd{
        font-size: 1.8rem;
      }
    }
  }

  .input_field{
    margin: 20px 0;

    .el-input{
      margin-bottom: 20px;
    }

    .el-button{
      margin-top: 50px;
      width: 100%;
    }
  }

</style>
